package com.gitee.wsl.data.store.datastore

import androidx.datastore.core.DataMigration
import androidx.datastore.core.DataStore
import androidx.datastore.core.handlers.ReplaceFileCorruptionHandler
import androidx.datastore.preferences.core.Preferences
import com.gitee.wsl.Lib
import kotlinx.coroutines.CoroutineScope
import java.io.File

//actual fun dataStorePreferences(
//    path: String,
//    corruptionHandler: ReplaceFileCorruptionHandler<Preferences>?,
//    coroutineScope: CoroutineScope,
//    migrations: List<DataMigration<Preferences>>,
//): DataStore<Preferences>{
//    return createDataStoreWithDefaults(
//        corruptionHandler = corruptionHandler,
//        migrations = migrations,
//        coroutineScope = coroutineScope,
//        pathGetter = {
//            File(Lib.appContext.filesDir, "datastore/$path").path
//        }
//    )
//}
